#元素统计

data_list = ['python', 'java', 'python', 'php']
# 统计python数量
num = data_list.count("python")
print(num)  # 数量为2

# 统计java数量
print(data_list.count("java"))  # 数量为1
print(data_list.count("C++"))  # 数量为0
